using System;
using log4net;

namespace Send2Sharepoint.Common
{
    public class Logging
    {
            private Logging()
            {

            }
            public static void WriteToLog(string logMessage)
            {
                var log = LogManager.GetLogger(System.Reflection.Assembly.GetExecutingAssembly().FullName);
                log.Info(logMessage);
            }
            public static void WriteException(Exception e)
            {
                var log = LogManager.GetLogger(System.Reflection.Assembly.GetExecutingAssembly().FullName);
                log.Error("", e);
            }

    }
}